#include <pcrecpp.h>
#include <iostream>
#include <string>

using std::cout;

int main(){
    int i;
    string s;
    pcrecpp::RE re("(\\w+):(\\d+)");
    re.FullMatch("ruby:1234", &s, &i);
    cout<<s<<" "<<i;
}
